package day11;

/**
 * @author oldliu
 * @since 1.0
 */
public class USBTest {
    public static void main(String[] args) {
        Usb fan=new USBFan("鳄鱼牌");
        fan.plugin();
        fan.work();
        fan.unuplug();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>");
        Usb u2=new USBMouse("双飞燕",199);
        u2.plugin();
        u2.work();
        //u2.shine();
        USBMouse m=(USBMouse)u2;
        m.shine();//!!!!!  ((USBMouse)u2).shine();
        u2.unuplug();
    }
}
